newBuilder

public static KeyPressed.Builder newBuilder(KeyCode keyCode)

Creates a new KeyPressed builder with the given required parameters.

Return

a new KeyPressed.Builder instance

Parameters

keyCode

the code of the key